import request from '@/utils/request'

// 查询学生成绩录入列表
export function listScore(query) {
  return request({
    url: '/score/score/list',
    method: 'get',
    params: query
  })
}

// 查询学生成绩录入详细
export function getScore(ID) {
  return request({
    url: '/score/score/' + ID,
    method: 'get'
  })
}

// 新增学生成绩录入
export function addScore(data) {
  return request({
    url: '/score/score',
    method: 'post',
    data: data
  })
}

// 修改学生成绩录入
export function updateScore(data) {
  return request({
    url: '/score/score',
    method: 'put',
    data: data
  })
}

// 删除学生成绩录入
export function delScore(ID) {
  return request({
    url: '/score/score/' + ID,
    method: 'delete'
  })
}

// 查询老师下面的学生的信息
export function listStudentByTeacher(teacherID ,data) {
  return request({
    url: `/score/score/listByTeacher/${teacherID}`,
    method: 'get',
    params: data
  })
}